package com.atguigu.gmall.product;

import com.atguigu.gmall.common.config.minio.annotation.EnableMinio;
import com.atguigu.gmall.common.config.pool.annotation.EnableAppThreadPool;
import com.atguigu.gmall.common.config.swagger.annotation.EnableRestAPIDocs;
import com.atguigu.gmall.common.exception.EnableAutoExceptionHandle;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.cloud.client.SpringCloudApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.transaction.annotation.EnableTransactionManagement;

//@EnableCircuitBreaker // 开启熔断
//@EnableDiscoveryClient // 开启服务注册与发现
//@SpringBootApplication

@EnableFeignClients(basePackages = "com.atguigu.gmall.feign.search")
@EnableRestAPIDocs // 开启swagger
@EnableMinio // 开启minio
@EnableAppThreadPool
@MapperScan("com.atguigu.gmall.product.mapper")
@SpringCloudApplication
@EnableTransactionManagement
@EnableAutoExceptionHandle
public class ProductMainApplication {
    public static void main(String[] args){
        SpringApplication.run(ProductMainApplication.class,args);
    }
}
